//
//  DetailCerCardTableViewCell.m
//  CreditHub
//
//  Created by chenglang on 2024/9/20.
//

#import "DetailCerCardTableViewCell.h"
#import "PhotoPickerTool.h"
#import "BaseViewController.h"
#import "HomeRequest.h"

@implementation DetailCerCardTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setDicHumming:(NSDictionary *)dicHumming{
    _dicHumming = dicHumming;
    if(dicHumming){
        self.labelPan.text = dicHumming[@"haven"];
        self.labelPan.text = dicHumming[@"finished"];
        if(!CHStringIsEmpty(dicHumming[@"haven"])){
            self.buttonPan.userInteractionEnabled = NO;
            [[ImageLoader sharedInstance] loadImageFromURL:[NSURL URLWithString:dicHumming[@"haven"]] imageView:self.imageViewPan completion:^(UIImage * _Nonnull image, NSError * _Nonnull error) {
                
            }];
            self.imageViewPanStatus.hidden = NO;
        }
        if(!CHStringIsEmpty(dicHumming[@"forletting"])){
            self.buttonCard.userInteractionEnabled = NO;
            [[ImageLoader sharedInstance] loadImageFromURL:[NSURL URLWithString:dicHumming[@"forletting"]] imageView:self.imageViewCard completion:^(UIImage * _Nonnull image, NSError * _Nonnull error) {
                
            }];
            self.imageViewCardStatus.hidden = NO;
        }
      
    }
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
